home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 6_11.lha / 6_11 / outputarb.c < prev    next >
Text File  |  1993-08-08  |  395b  |  14 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <arbint.h>
  6. oid outputarb(ostream &out, char *h, ARB_type *s, int len, int ref)
  7.  
  8.    out << h << "(" << len << ") 0x";
  9.    for (int ii = 0; ii < len; ii++)
  10. out << form(" %4.4x", s[ii]);
  11.    if (ref != -100) out << "\tref=" << ref;
  12.    out << "\n";
  13.  
  14.